package BC85_包含数字9的数;

public class Main {
    public static void main(String[] args) {

        int cont = 0;

        for (int i = 1; i <= 2019; i++){
            String s = Integer.toString(i);
            if (s.contains("9")){
                cont++;
            }
        }
        System.out.println(cont);


    }
}
